[go home]

Creating React frontend with Strapi backend

I will be explaining at a high level how to initialize a React frontend based project with a Strapi backend (with optional cloud PostgreSQL via neon.tech and Cloudinary for image hosting). You may want to achieve something similar to this if you want to build a site for a client and allow them to add their own content via Strapi.

React frontend

Initialize a create-react-app project after CDing to a folder of your choice:

npx create-react-app my-app

cd into that new project and run the React server locally:

cd my-app
npm start

Notes on deploying React to Cloudflare:

Strapi backend:

Initialize a Strapi project after CDing to a folder of your choice:

npx create-strapi-app@latest my-strapi-project --quickstart

Then, create admin account and get started in Strapi.

Notes on Strapi

Deploying Strapi to Render

Image hosting via Cloudinary